<template>
  <lay-tooltip placement="top">
    <template #content>
      <span>刷新</span>
    </template>
    <RefreshThreeIcon @click="redo" />
  </lay-tooltip>
</template>
<script lang="ts" setup>
import { RefreshThreeIcon } from "@layui/icons-vue";
import { useTableContext } from "../../hooks/useTableContext";

const table = useTableContext();

function redo() {
  table.reload();
}
</script>
